package com.ec.system.modules.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ec.system.api.modules.sys.bo.SysUserLoginBO;
import com.ec.system.api.modules.sys.dto.SysUserLoginDTO;
import com.ec.system.modules.sys.dto.QueryUserDTO;
import com.ec.system.modules.sys.entity.SysUser;
import com.ec.system.modules.sys.vo.SysUserVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @description:
 * @author: Eric Lee
 * @time: 2021/7/16 19:27
 */
public interface SysUserMapper extends BaseMapper<SysUser> {
    /**
     * 查询用户信息
     *
     * @param sysUserLoginDTO
     * @return
     */
    SysUserLoginBO querySysUserInfo(SysUserLoginDTO sysUserLoginDTO);

    int listUserCount(@Param("userDto") QueryUserDTO listUserDTO, @Param("depts") List<Long> depts);

    List<SysUserVO> listUser(@Param("userDto") QueryUserDTO listUserDTO, @Param("depts") List<Long> depts);
}
